package com.baitengsoft.patentapimonitor.api.dao;

import com.baitengsoft.patentapimonitor.api.entity.PacIndustryEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by QEK on 2017/12/19.
 */
@Mapper
@Repository
public interface PacIndustryDao extends BasetkRepository<PacIndustryEntity> {

    /**
     * 根据权力人ID查询产业ID
     */
    List<Integer> getIndustryIdByApplicentId(@Param("applicantId") Integer applicantId);

    /**
     * 据平台Id查询行业Id
     */
    List<Integer> getIndustryIdsByPlatformId(@Param("platformid") Integer platformid);

    /**
     *
     * @param platformid
     * @param sort
     * @return
     */
    int selectCountByPlatformIdAndSort(@Param("platformid") Integer platformid, @Param("sort") Integer sort);
}
